
<template>
  <div>
    <div>{{ element.componentProps.name }}</div>
  </div>
</template>
 
<script lang="ts">
import { defineComponent, inject, toRefs } from "vue";
import type { LowCodeImp } from "@/components/low-code/core/";

export default defineComponent({
  props: ["element"],
  setup(props) {
    const getLowCodeInstance = inject("getLowCodeInstance") as Function;
    const lowCode = getLowCodeInstance() as LowCodeImp;
    const { element } = toRefs(props);
    return {
      element,
    };
  },
});
</script>

<style  scoped>
</style>
